import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/scss/common.scss' // 引入全局公共样式
Vue.config.productionTip = false
Vue.use(ElementUI)

import MyComs from '@/components/index'
Vue.use(MyComs) // 使用组件
import MyComs2 from '@/components/003-base-comps/index'
Vue.use(MyComs2) // 批量自动化全局注册

import htmlToPdf from '@/utils/htmlToPdf'
Vue.use(htmlToPdf)
import loadingDirective from './directives/loading'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
Vue.use(Antd);
// 注册全局指令
Vue.directive('loading', loadingDirective)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
